<?php
if ($this -> pageCount > 1) :
	?>
  <?php
	$frontController = Zend_Controller_Front::getInstance ();
	$get = $frontController->getRequest ();
	?>
<div class="paginationControl">
<div align="center"><!-- Previous page link -->
  <?php
	if (isset ( $this -> previous )) :
		?>
  <a
	href="<?=$this->url ( array ( 'site_id' => $get->getParam ( 'site_id' ) , 'controller' => $get->getParam ( 'controller' ) , 'model_id' => $get->getParam ( 'model_id' ) , 'page_id' => $this -> previous ), 'site_model_page' )?>">上一页</a> 
  
	<?php
	else :
		?>
  <span class="disabled">上一页</span>
  
	<?php endif;
	?>
  /
  <!-- Next page link -->
  <?php
	if (isset ( $this -> next )) :
		?>
  <a
	href="<?=$this->url ( array ( 'site_id' => $get->getParam ( 'site_id' ) , 'controller' => $get->getParam ( 'controller' ) , 'model_id' => $get->getParam ( 'model_id' ) , 'page_id' => $this -> next ), 'site_model_page' )?>">下一页</a>
  
	<?php
	else :
		?>
  <span class="disabled">下一页</span>
</p>

	<?php endif;
	?>
</div>

分页： <!-- Numbered page links -->
  <?php
	foreach ( $this -> pagesInRange as $page ) :
		?>
  <?php
		if ($page != $this -> current) :
			?>
  <a
	href="<?=$this->url ( array ( 'site_id' => $get->getParam ( 'site_id' ) , 'controller' => $get->getParam ( 'controller' ) , 'model_id' => $get->getParam ( 'model_id' ) , 'page_id' => $page ), 'site_model_page' )?>">
    <?php
			echo $page;
			?></a>  
  
		<?php
		else :
			?>
  <?php
			echo $page;
			?>  
  
		<?php endif;
		?>
  <?php
	endforeach
	;
	?>

</div>

<?php endif;
?>
